Skip to content

rustdoc: align the doctest runner with the test platform - #4279

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-doctest-runners
Sep 28, 2026
Merged

UebelAndre merged 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-doctest-runners

Conversation

@jrandolf

@jrandolf jrandolf commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Build the compiled-doctest runner for Bazel's test execution platform and preserve its executable suffix. Reject cross-built legacy doctests with a diagnostic explaining that they must use nightly compiled doctests, since legacy doctests execute the compiler during testing.

The Rustdoc analysis suite passes on macOS in stable-only, nightly-only, and Bazel 7.4.1 configurations. A current-Bazel platform regression fails with the old runner transition and passes with path mapping enabled. Compiled-only tests inherit the selected toolchain and run only when nightly compiled doctests are enabled. Windows execution remains for CI.

Closes #4293.

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@UebelAndre
UebelAndre added this pull request to the merge queue Sep 28, 2026
Merged via the queue into bazelbuild:main with commit 5713826 Sep 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiled doctest runners use the compiler execution platform instead of the test platform

2 participants